import { request } from "@/utils/request";

type LoginDto = {
  username: string;
  password: string;
  code: string;
};

export const login = (data: LoginDto) => {
  return request({
    url: "/auth/login",
    method: "post",
    data,
  });
};
export const getInfo = () => {
  return request({
    url: "/users/getInfo",
    method: "get",
  });
};
